
function certifycode(imgid,formname,formhashid) {
	if(formhashid) {
		$(imgid).src='./ResumeSys?action=certifycode';
	} else {
		Ajax.xml('checker&amp;deletesubmit=1&amp;imgid='+imgid+'&amp;formname='+formname);
	}
}

function wane_set_cookie(name,value,hours){var expire="";if(hours&&hours>0){expire=new Date((new Date()).getTime()+hours*3600000);}else{expire=new Date((new Date()).getTime()+1*3600000);}
expire="; expires="+expire.toGMTString();document.cookie=name+"="+escape(value)+expire+'; path=/';}
function yjs_set_cookie(name,value,minute){var expire="";if(minute&&minute>0){expire=new Date((new Date()).getTime()+minute*60000);}else{expire=new Date((new Date()).getTime()+1*60000);}
expire="; expires="+expire.toGMTString();document.cookie=name+"="+escape(value)+expire+'; path=/;domain=yingjiesheng.com;';}
function yjs_add_fav(title,url){url='http://my.yingjiesheng.com'+url;yjs_set_cookie('my_fav_title',title,10);yjs_set_cookie('my_fav_url',url,10);window.open('/index.php/personal/index/my_fav_create.htm');}
function yjs_del_fav(){yjs_set_cookie('my_fav_title','',0);yjs_set_cookie('my_fav_url','',0);}
function collapsed(id,image,imgprefix,cookie){if(typeof Ajax_prefix=='undefined'){Ajax_prefix='';}
var imgroot=Ajax_prefix+'images/icon/';if($(id).style.display=='none'){$(id).style.display='';if(image){$(id+'_image').src=imgroot+(imgprefix?imgprefix:'cp')+'_collapsed_0.gif';}
if(cookie){wane_set_cookie(id,'0');}}else{$(id).style.display='none';if(image){$(id+'_image').src=imgroot+(imgprefix?imgprefix:'cp')+'_collapsed_1.gif';}
if(cookie){wane_set_cookie(id,'1');}}}
function resize(id,isadd){var sized=$(id).style.height.replace('px','');sized=parseInt(sized/1);if(isadd){$(id).style.height=(sized+100)+'px';}else{if(sized<=100){return false;}else{$(id).style.height=(sized-100)+'px';}}}
function focusid(n,m) {
	if(!m||isNaN(m)||isNaN(n)) {
		return false;
	}
	
	var maxid=m;
	for(var i=1;i<=maxid;i++) {
		if (i==n&&$('focusid'+i)) {
			$('focusid'+i).className='tr2';
		} else if ($('focusid'+i)) {
			var tmp=i%2;$('focusid'+i).className='tr'+tmp;
		}
	}
	}
var ischeckedbox=false;function checkall(fname){var boxform=eval('document.'+fname);ischeckedbox=ischeckedbox?false:true;for(var i=0;i<boxform.elements.length;i++){if(boxform.elements[i].type=='checkbox'){var checkname=boxform.elements[i].name;if(checkname.substr(checkname.length-2,2)=='[]'){boxform.elements[i].checked=ischeckedbox?true:false;}}}}
var select_box_comma='';var select_box_selected='';function checkboxes(fname){var nums=0;var boxform=eval('document.'+fname);select_box_comma='';select_box_selected='';for(var i=0;i<boxform.elements.length;i++){if(boxform.elements[i].type=='checkbox'){if(boxform.elements[i].checked){nums+=1;select_box_selected+=select_box_comma+boxform.elements[i].value;select_box_comma=',';}}}
return nums;}
function redirect(url){window.location=url;}
function openwindow(url,width,height){width=(width?width:800)+'px';height=height?height+'px':'height';if(is_ie||is_ie4){window.showModelessDialog(url,window,"help:no;resizable:no;status:no;scrollbars:yes;center:yes;dialogWidth:"+width+";dialogHeight:"+height+";");}else{left=(document.body.clientWidth-778)/2;window.open(url,'newwindow','location=1,width='+width+'px,height='+height+',scrollbars=yes,left='+left+',top:0');}}
function processing(eid,msg){$(eid).innerHTML=msg;}